-- GENERATED SPELL FOR [Jadefire Hellcaller] --


function spell0_7111(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7111', 3000, 1)
end

function spell1_7111(pUnit, Event) --@Jadefire,Self--
pUnit:FullCastSpellOnTarget(13578,pUnit)
pUnit:RegisterEvent('Sorts_7111', 8343, 1)
end

function spell2_7111(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(11990,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7111', 9000, 1)
end

function Sorts_7111(pUnit, Event)
local choix_sorts_7111 = math.random(0, 2)
if choix_sorts_7111 == 0 then
pUnit:RegisterEvent('spell0_7111', 1, 1)
end
if choix_sorts_7111 == 1 then
pUnit:RegisterEvent('spell1_7111', 1, 1)
end
if choix_sorts_7111 == 2 then
pUnit:RegisterEvent('spell2_7111', 1, 1)
end
end

function mob7111_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7111', math.random(1500, 3000), 1)
end

function mob7111_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7111_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7111_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7111, 1, 'mob7111_Action')
RegisterUnitEvent(7111, 2, 'mob7111_Leave')
RegisterUnitEvent(7111, 3, 'mob7111_Kill')
RegisterUnitEvent(7111, 4, 'mob7111_Die')
